
    <center>
            <?php
            $db = new Database();
            $getSettings = $db->query("SELECT * FROM tbsettings");
            foreach($getSettings as $value){
                $logo = $value['logo'];
            }
            ?>
            <img src="<?php echo $logo; ?>" class="Compannylogo" width="300" height="100">
            <br /><br /><br />
            <h1 style="color: #ddd;">Welcome to the Loyalty Redemption System</h1>
    </center>
<div class="loginBox">
    <form action="" method="POST">
            <center>
               <div style="color: #ddd; font-size: 30px; font-family: Arial;">Login</div>
                    <div class="input_box">
                           <div style="color: #ddd;font-size: 15px; font-weight: bold; font-family: Arial;margin-bottom: 10px;margin-top: 10px;">Username</div>
                            <input placeholder="User Name" name="username" type="text" id="username" class="loginField" title="Input your Username">
                    </div>
                    <div class="input_box">
                           <div style="color: #ddd;font-size: 15px; font-weight: bold; font-family: Arial;margin-bottom: 10px;margin-top: 10px;">Password</div>
                            <input placeholder="Password" name="password" type="password" id="password"  class="loginField" title="Input your Password"></div>
                    <div>
                        <!--a class="forgot_password" href="#">Have you forgotten your password?</a-->
                        <input name="login" type="submit" value="Login" class="button">
                    </div>
            </center>
    </form>
</div>
<div style="margin-top: 10px;">
<?php
    /* For user login if wrong redirect to index/login */
    if($_SERVER['REQUEST_METHOD'] == "POST")
    {
       if(!$login)
       {
         echo
         '
         <div class="notification_wrapper">
            <div class="wrong">
               <img src="images/warning/closed.png" width="22" height="19" class="img-notification-position">
               <div class="notification-position">    
                   Invalid username & Password, Try to login again!
               </div>
           </div>
         </div>
         ';
       }
    }
    
?>
</div>